import request from '@/utils/request';

export const sendCodeAPI = (mobile: string) => {
  return request({
    url: `/v1_0/sms/codes/${mobile}`,
  });
};
export type LoginformdateType = {
  mobile: string;
  code: string;
};
export const LoginAPI = (data: LoginformdateType) => {
  return request({
    url: `/v1_0/authorizations`,
    method: 'POST',
    data,
  });
};
